package lab02.test26;

public class Test26 {
    public static void main(String[] args) {
        int a[] = {0,0};
        int num = 1;
        int result = 0 ;

        try {
            result = num/0;
            System.out.println(num/a[2]);
        }
        catch (ArithmeticException e){
            System.out.println("Error1 =="+e);
        }
        catch (ArrayIndexOutOfBoundsException e){
            System.out.println("Error2 =="+e);
        }
        catch (Exception e){
            System.out.println("Error3=="+e);
        }
        finally {
            System.out.println("结束");
        }
    }
}

